import Koa from "koa"
import { appPost } from "./config/setting.js";
import { useControllers } from "./controllers/index.js";
import { sync } from "./db/index.js";


await sync();

let app = new Koa();

app.use(async (ctx,next)=>{
   await next();
})

app.listen(appPost)

console.log(`服务运行于http://localhost:${appPost}`);
